package ch09;

import static java.lang.System.out;

class _23_WrapperEx3 {
	public static void main(String[] args) {
		int i = 10; out.println(i); // 10
		Integer intger = (Integer) i; out.println(intger); // 10
		Object obj = (Object) i; out.println(obj); // 10

		Long lng = 100L; out.println(lng); // 100
		int i2 = intger + 10; out.println(i2); // 20
		long l = intger + lng; out.println(l); // 110

		Integer intger2 = new Integer(20);
		int i3 = (int) intger2; out.println(i3); // 20
		i3 = intger2; out.println(i3); // 20
	}
}
